import request from '../../utils/request'

// 分页查询
export  function rolePageList(data: object) {
  return  request({
    url: '/sys/roleList',
    method: 'post',
    data: data
  })
}

// 修改or新增
export function addOrUpdate(data: object) {
  return request({
    url: '/sys/addOrUpdate',
    method: 'post',
    data: data
  })
}
//删除
export function delRoleById(id: number) {
  return request({
    url: '/sys/del/'+id,
    method: 'get'
  })
}